package com.anjiebang.conf;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * 配置类
 * Created by laiyanlin on 2018/4/8.
 */
@Component
public class SysConfig implements Serializable {

    /**
     * 判断是否是测试，fase本地，true网络
     */
    @Value("${app.api.state}")
    public String isAppState;

    public boolean getIsAppState() {
        return Boolean.parseBoolean(isAppState);
    }
}
